package com.mapforge.gui.tools;

import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import com.mapforge.Constants;
import com.mapforge.gui.MapEditorMenuBar;
import com.mapforge.map.TileLayer;
import com.mapforge.map.tools.TileClipboard;
import com.mapforge.map.tools.selection.AbstractSelectionTool;
import com.mapforge.map.tools.selection.RectangleSelectionTool;

public class RectangleSelectionToolButton extends SelectionToolButton {
	/**
	 * Default serial version ID, here to remove warnings.
	 */
	private static final long serialVersionUID = 1L;
	private JMenuItem edit_cutTiles;
	private JMenuItem edit_copyTiles;
	private JMenuItem edit_pasteTiles;

	// private RectangleSelectionTool tool;

	public RectangleSelectionToolButton(RectangleSelectionTool tool,
			MapEditorMenuBar menuBar) {
		super(Constants.RECTANGLE_SELECTION_ICON, tool);
		// this.tool = tool;
		this.edit_cutTiles = menuBar.getCutItem();
		this.edit_copyTiles = menuBar.getCopyItem();
		this.edit_pasteTiles = menuBar.getPasteItem();

		CutCopyPasteListener listener = new CutCopyPasteListener();
		this.edit_cutTiles.addActionListener(listener);
		this.edit_copyTiles.addActionListener(listener);
		this.edit_pasteTiles.addActionListener(listener);
	}

	private class CutCopyPasteListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			
		}
	}
}
